package com.lswms.service;

import com.lswms.common.page.PageInfo;
import com.lswms.common.page.PageRequest;
import com.lswms.common.service.CrudService;
import com.lswms.dto.YnLotteryTicketOrderDTO;
import com.lswms.dto.vo.req.DeleteMyNumsReq;
import com.lswms.dto.vo.req.MyLotteryTicketReq;
import com.lswms.dto.vo.req.MyNumsReq;
import com.lswms.dto.vo.req.PayReq;
import com.lswms.dto.vo.req.SaveNumReq;
import com.lswms.dto.vo.req.SetXCountReq;
import com.lswms.dto.vo.resp.MyNumsResp;
import com.lswms.entity.YnLotteryTicketOrderEntity;
import com.lswms.entity.YnUserEntity;

/**
 * 彩票下单记录
 *
 * @author Mark sunlightcs@gmail.com
 * @since 1.0.0 2020-06-20
 */
public interface YnLotteryTicketOrderService extends CrudService<YnLotteryTicketOrderEntity, YnLotteryTicketOrderDTO> {
	/**
	 * 保存号码
	 * @param req
	 */
	public String saveNum(SaveNumReq req,YnUserEntity ynuser);
	
	/**
	 * 支付
	 * @param req
	 */
	public void pay(PayReq req,YnUserEntity ynuser);

	/**
	 * 修改倍数
	 * @param req
	 * @param ynuser
	 */
	public void setXCount(SetXCountReq req,YnUserEntity ynuser);
	/**
	 * 我的选号
	 * @param ynuser
	 */
	public PageInfo<MyNumsResp> myNums(MyNumsReq dto,YnUserEntity ynuser);
	/**
	 * 我的选号删除
	 * @param dto
	 * @param ynuser
	 */
	public void deleteMyNums(DeleteMyNumsReq dto,YnUserEntity ynuser);
	
	/**
	 * 我的彩票
	 * @param ynuser
	 */
	public PageInfo<MyNumsResp> myLotteryTicket(MyLotteryTicketReq dto,YnUserEntity ynuser);
	/**
	 * 每日数据
	 * @param s
	 * @param e
	 * @return
	 */
	public String odata(String s,String e);
}